package jw3.c10.controllner;

import jw3.c10.model.Goods;
import jw3.c10.utils.QueryByClass;

public class GoodsController {
    public static int getGoodsNum(int BarCode){
        String sql="select GoodsNum from goods where BarCode=?";
        QueryByClass<Goods> qc=new QueryByClass<Goods>();
        return qc.select(Goods.class,sql,BarCode).get(0).getGoodsNum();
    }

}
